home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / X / Xserver / XLayerUtil.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  1.6 KB  |  51 lines

  1. /*
  2.  * Copyright 1993, 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. /* $Revision: 1.3 $ */
  18. #include <X11/Xlib.h>
  19. #include <X11/Xutil.h>
  20. #include <X11/Xmd.h>
  21.  
  22. /* Transparent type values */
  23. /*      None                  0 */
  24. #define TransparentPixel      1
  25. #define TransparentMask       2
  26.  
  27. /* layered visual info template flags */
  28. #define VisualLayerMask        0x200
  29. #define VisualTransparentType    0x400
  30. #define VisualTransparentValue    0x800
  31. #define VisualAllLayerMask    0xFFF
  32.  
  33. /* layered visual info structure */
  34. typedef struct _XLayerVisualInfo {
  35.    XVisualInfo vinfo;
  36.    int layer;
  37.    int type;
  38.    unsigned long value;
  39. } XLayerVisualInfo;
  40.  
  41. /* SERVER_OVERLAY_VISUALS property element */
  42. typedef struct _OverlayInfo {
  43.    CARD32  overlay_visual;
  44.    CARD32  transparent_type;
  45.    CARD32  value;
  46.    CARD32  layer;
  47. } OverlayInfo;
  48.  
  49. extern XLayerVisualInfo *XGetLayerVisualInfo(Display*,long,XLayerVisualInfo*,int*);
  50. extern Status XMatchLayerVisualInfo(Display*,int,int,int,int,XLayerVisualInfo*);
  51.